import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import ScrollList from '@/components/scroll-list/index.vue'
import PageLayout from '@/components/page-layout/index.vue'

export function createApp () {
  const app = createSSRApp(App)
  app.use(createPinia())

  app.component('scroll-list', ScrollList)
  app.component('page-layout', PageLayout)

  return {
    app,
  }
}
